const defaultPage = {
  icon: 'icon',
  title: 'title',
}

class Page {

  #pagesInfo = [];

  // ...
  constructor(option = defaultPage) {
    this.#pagesInfo.push(option);
  }

  rename(position, newTitle) {
    this.#pagesInfo[position].title = newTitle;

    // dom操作
  }

  delete(position) {
    this.#pagesInfo.splice(position, 1);

    // dom操作
  }
}

class TwoDimensionalTablePage extends Page {
  #toolBar;
  #table;
  
  constructor(option = defaultPage, tools, table) {
    super(option);
    this.#toolBar = tools;
    this.#table = table;
  }

}